<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  // 关闭浏览器窗口时清除localstorage
  mounted(){
    window.onbeforeunload = function(e){
      window.localStorage.clear()
    }
  }
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
